package cleveland;

import java.util.HashSet;
import java.util.Set;

import org.atcs.hearts.Card;

public class Opponent
{
	Set<Card> cardsInHand = new HashSet<Card>();
	public Opponent(Set<Card> cardsYetToBePlayed)
	{
		cardsInHand = cardsYetToBePlayed;
	}
	
	public double probabilityOfHaving(Card c)
	{
		if(cardsInHand.contains(c))
		{
			return 1.0 / (double)(cardsInHand.size());
		}
		else
		{
			return 0;
		}
	}
}
